//---------------------------------------------------------------------------

#ifndef mallaH
#define mallaH
#include "cara.h"
#include "pv.h"
#include "lista.h"
//---------------------------------------------------------------------------
class Malla{

    private:
        GLint nv,nn,nc;
        Lista<PV> * vertice,*normal;
        Lista<Cara> * cara;

    public:
        Malla(){vertice = new Lista<PV>();
                normal = new Lista<PV>();
                cara = new Lista<Cara>();};
        ~Malla(){delete vertice;
                 delete normal;
                 delete cara;};
        void Dibuja(int grafico);
        void setVertice(Lista<PV> * v){vertice = v;};

        Lista<PV> * getVertice(){return vertice;};
        Lista<PV> * getNormal(){return normal;};
        Lista<Cara> * getCara(){return cara;};

        GLint getNv(){return nv;};
        GLint getNn(){return nn;};
        GLint getNc(){return nc;};
        void setNv(GLint a){nv = a;};
        void setNn(GLint a){nn = a;};
        void setNc(GLint a){nc = a;};



};


#endif
